package com.utils;

import com.alibaba.fastjson.JSONObject;

/**
 * @Author: zrhuang4
 * @CreateTime: 2023-03-15  22:02
 * @Description: TODO
 */

public class test {

    public static void main(String[] args) {
        HttpRequestClient httpRequestClient = new HttpRequestClient("admin","s6xrc%3yjKPr");
        String s = httpRequestClient.doGet("https://sonarqube.iflytek.com:9500/api/issues/search?componentKeys=aa1");
        System.out.println(s);
        JSONObject jsonObject = JSONObject.parseObject(s);

        SonarIssue  sonarIssue = new SonarIssue();
        IssueDto jsonObject1 = sonarIssue.RetrieviewIssue("https://sonarqube.iflytek.com:9100", "admin",
                "s6xrc%3yjKPr", "QYPT-QYAPIJKFW",1,100);
        System.out.println(jsonObject1);
    }

}
